/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-08-12 19:47:00
 */
const RouteView = () => import('@/layout/RouteView');
// 异步路由组件加载
const AsyncComponent = __name__ => () => import(`@/pages/${__name__}`);

// 菜单路由
const menuRoutes = [
  {
    path: '/customer',
    meta: { title: '客户关怀', icon: 'el-icon-s-flag' },
    redirect: '/customer',
    component: RouteView,
    children: [
      {
        path: '/customer/monitor',
        meta: { title: '监控信息设定' },
        redirect: '/customer/monitor',
        component: RouteView,
        children: [
          {
            path: '/customer/monitor/monitorInfo',
            meta: { title: '监控信息设定', keepAlive: true },
            component: AsyncComponent('customer/monitor/monitorInfo')
          }
        ]
      }
    ]
  }
];

export default menuRoutes;
